package com.zsx.shopping.product.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 商品SPU
 * @TableName pms_spu
 */
@TableName(value ="pms_spu")
@Data
public class Spu implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 所属分类ID
     */
    private Long catId;

    /**
     * 所属品牌ID
     */
    private Long brandId;

    /**
     * 详情图片
     */
    private String detailImages;

    /**
     * 上架状态
     */
    private Boolean publishState;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}